import java.util.function.Function;

public class Computer extends Role {

    @Override
    public void generate() {
        int computerNumber = Util.random(0, 2);
        this.setNumber(computerNumber);
//        if (computerNumber == 0) {
//            System.out.println("电脑出的是" + computerNumber + "石头");
//        } else if (computerNumber == 1) {
//            System.out.println("电脑出的是" + computerNumber + "布");
//        } else if (computerNumber == 2) {
//            System.out.println("电脑出的是" + computerNumber + "剪刀");
//        }
    }
}

